<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Jacov\JacovBundle\Controller;

use Jacov\JacovBundle\Controller\MainController;
use Jacov\JacovBundle\Model\MenuRestaurantModel;

class MenuRestaurantController extends MainController
{  
    private $_MenuRestaurantModel;
    public function indexAction($page='wine-list')
    {
        $this->_MenuRestaurantModel = new MenuRestaurantModel($this->getDoctrine()->getManager());
          return $this->render(
            'JacovJacovBundle:Content:menu.html.twig',
             array('menu'=>$this->_MenuRestaurantModel->getMenu($page))     
        );
    }
}
